﻿/*
 * Created by SharpDevelop.
 * User: xieen
 * Date: 2013-08-26
 * Time: 15:48
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace GoF23Learning._21.Strategy_Pattern
{
	/// <summary>
	/// Description of Cart.
	/// </summary>
	public class Cart
	{
		public void GetAlignment(CartType cartType) 
		{
			if(cartType == CartType.A){
				ProcessA();
				
			}else if(cartType == CartType.B){
				ProcessB();
			}
			else{
				
			}
		}
		
		protected void ProcessA()
		{
			 
		}
		protected void ProcessB()
		{
			 
		}
	}
}
